package DTO;

import java.sql.Timestamp;

public class Grammar {
	private int id;
	private String syntax;
	private Timestamp timeStamp;
	private boolean isActive;
	
	/* For GUI queries.*/
	public Grammar(String syntax){
		this.syntax = syntax;
	}
	
	/* For BD queries. */
	public Grammar(String syntax, Timestamp timeStamp){
		this.syntax = syntax;
		this.timeStamp = timeStamp;
	}

	public String getSyntax() {
		return syntax;
	}

	public void setSyntax(String syntax) {
		this.syntax = syntax;
	}

	public Timestamp getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Timestamp timeStamp) {
		this.timeStamp = timeStamp;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
}
